<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>配置Thymeleaf模板</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div style="text-align: center;margin:0 auto;width: 1000px; ">
<h1>配置Thymeleaf模板</h1>
<table width="100%" border="1" cellspacing="1" cellpadding="0">
    <tr>
        <td>姓名</td>
        <td>年龄</td>
        <td>地址</td>
        <td>操作</td>
    </tr>
    <tr th:each="student : ${list}">
        <td th:text="${student.name}"></td>
        <td th:text="${student.age}"></td>
        <td th:text="${student.address}"></td>
        <td><a th:href="${'toAdd1?id=' + student.id}">修改</a>|<a th:href="${'toDelete1?id=' + student.id}">删除</a></td>
    </tr>
</table>
<a href="toAdd1"><input th:type="button" th:id="add1" th:value="添加"/></a>
</div>
</body>
</html>